<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
    <title>Title</title>
</head>
<body>
<img src="logo.png" id="pic">
<button type="default" onclick="screen()"></button>
<script>
    function screen(){
		html2canvas(document.querySelector("pic")).then(canvas =>{
			document.body.appendChild(canvas)
        })
    }

</script>
</body>
</html>